package composite_pattern.abstract_file.file;

import composite_pattern.abstract_file.AbstractFile;

public class VideoFile extends AbstractFile {
    private String name;
    public String getName() {
        return name;
    }
    public VideoFile(String name){
        this.name = name;
    }
    @Override
    public void display() {
        System.out.println("我是一份视频");
    }
}
